package com.roger.myHome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roger.myHome.domain.TbBloodSugar;
import com.roger.myHome.entity.qto.BloodSugarReq;
import com.roger.myHome.entity.vo.BloodSugarVo;
import com.roger.myHome.entity.export.BloodSugarEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BloodSugarsMapper extends BaseMapper<TbBloodSugar> {

    List<BloodSugarVo> selectBloodSugarPage(BloodSugarReq req);

    Long selectBloodSugarCount(BloodSugarReq req);

    List<BloodSugarEntity> selectBloodSugarExport();

    List<Long> validate(@Param("measureTime") String measureTime,@Param("timePeriod") String timePeriod);


}
